home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / Professional Programmer XSL IDE / Xselerator25.msi / Data.Cab / F35808_split.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2001-10-28  |  533 b   |  16 lines

  1. <xsl:stylesheet version="1.0" 
  2. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. >
  4.   <xsl:template name="split">
  5.     <xsl:param name="pList" select="/.."/>
  6.     <xsl:param name="pN" select="0"/>
  7.     <xsl:param name="pElementName" select="'list'"/>
  8.     
  9.     <xsl:element name="{$pElementName}">
  10.         <xsl:copy-of select="$pList[position() <= $pN]"/>
  11.     </xsl:element>
  12.     <xsl:element name="{$pElementName}">
  13.         <xsl:copy-of select="$pList[position() > $pN]"/>
  14.     </xsl:element>
  15.   </xsl:template>
  16. </xsl:stylesheet>